package com.luck.emp.entity;

import java.util.Date;

import com.luck.org.entity.VDepartment;
import com.luck.org.entity.VUser;
import com.luck.pf.util.DateUtil;
import com.luck.pf.util.FormateUtil;

/**
 * 说明:ENEITY类 Copyright: Copyright (c) 2011 深圳**科技
 * 
 * @author
 * 
 */
public class EmpTWhExM implements java.io.Serializable {
	/**
	 * pk 调拔单编号
	 **/
	String exNo;
	/**
	 * 单据状态
	 **/
	String status;
	/**
	 * 调拔类型
	 **/
	String inoutType;
	/**
	 * 电话
	 **/
	String tel;
	/**
	 * 联系人
	 **/
	String contact;
	/**
	 * 创建机构
	 */
	Long deptId;
	private VDepartment dept;
	/**
	 * 调出机构ID
	 **/
	Long fromDeptId;
	VDepartment fromDept;
	/**
	 * 调出仓库编码
	 **/
	String fromWhCode;
	EmpTWarehouse fromWh;
	/**
	 * 调入机构ID
	 **/
	Long toDeptId;
	VDepartment toDept;
	/**
	 * 调入仓库编码
	 **/
	String toWhCode;
	EmpTWarehouse toWh;
	/**
	 * 业务员ID
	 **/
	Long salemanId;
	EmpTSalesman saleman;
	/**
	 * 审核人
	 **/
	VUser auditor;
	/**
	 * 审核时间
	 **/
	Date auditDate;
	/**
	 * 备注
	 **/
	String note;
	/**
	 * 审核原因
	 **/
	String auditNote;
	/**
	 * 单据类型
	 **/
	String billType;
	/**
	 * 渠道帐号
	 **/
	String channel;
	/**
	 * 创建人
	 **/
	private VUser createUser;
	/**
	 * 创建时间
	 **/
	Date createDate;
	/**
	 * 修改人
	 **/
	private VUser modiUser;
	/**
	 * 修改时间
	 **/
	Date modiDate;

	public EmpTWhExM() {
	}

	public String getExNo() {
		return this.exNo;
	}

	public void setExNo(String exNo) {
		this.exNo = exNo;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getInoutType() {
		return this.inoutType;
	}

	public void setInoutType(String inoutType) {
		this.inoutType = inoutType;
	}

	public String getContact() {
		return this.contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public Long getFromDeptId() {
		return this.fromDeptId;
	}

	public void setFromDeptId(Long fromDeptId) {
		this.fromDeptId = fromDeptId;
	}

	public String getFromWhCode() {
		return this.fromWhCode;
	}

	public void setFromWhCode(String fromWhCode) {
		this.fromWhCode = fromWhCode;
	}

	public Long getToDeptId() {
		return this.toDeptId;
	}

	public void setToDeptId(Long toDeptId) {
		this.toDeptId = toDeptId;
	}

	public String getToWhCode() {
		return this.toWhCode;
	}

	public void setToWhCode(String toWhCode) {
		this.toWhCode = toWhCode;
	}

	public Long getSalemanId() {
		return this.salemanId;
	}

	public void setSalemanId(Long salemanId) {
		this.salemanId = salemanId;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getAuditDate() {
		return this.auditDate;
	}

	public void setAuditDate(Date auditDate) {
		this.auditDate = auditDate;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getAuditNote() {
		return this.auditNote;
	}

	public void setAuditNote(String auditNote) {
		this.auditNote = auditNote;
	}

	public String getBillType() {
		return this.billType;
	}

	public void setBillType(String billType) {
		this.billType = billType;
	}

	public String getChannel() {
		return this.channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public Date getModiDate() {
		return this.modiDate;
	}

	public void setModiDate(Date modiDate) {
		this.modiDate = modiDate;
	}

	public VDepartment getFromDept() {
		return fromDept;
	}

	public void setFromDept(VDepartment fromDept) {
		this.fromDept = fromDept;
	}



	public EmpTWarehouse getFromWh() {
		return fromWh;
	}

	public void setFromWh(EmpTWarehouse fromWh) {
		this.fromWh = fromWh;
	}

	public VDepartment getToDept() {
		return toDept;
	}

	public void setToDept(VDepartment toDept) {
		this.toDept = toDept;
	}

	public EmpTWarehouse getToWh() {
		return toWh;
	}

	public void setToWh(EmpTWarehouse toWh) {
		this.toWh = toWh;
	}

	public EmpTSalesman getSaleman() {
		return saleman;
	}

	public void setSaleman(EmpTSalesman saleman) {
		this.saleman = saleman;
	}

	public VUser getAuditor() {
		return auditor;
	}

	public void setAuditor(VUser auditor) {
		this.auditor = auditor;
	}

	public VUser getCreateUser() {
		return createUser;
	}

	public void setCreateUser(VUser createUser) {
		this.createUser = createUser;
	}

	public VUser getModiUser() {
		return modiUser;
	}

	public void setModiUser(VUser modiUser) {
		this.modiUser = modiUser;
	}

	public Long getDeptId() {
		return deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public VDepartment getDept() {
		return dept;
	}

	public void setDept(VDepartment dept) {
		this.dept = dept;
	}

	public String getCreateDateStr() {
		return DateUtil.dateToString(this.createDate, DateUtil.patternE);
	}

	public String getAuditDateStr() {
		return DateUtil.dateToString(this.auditDate, DateUtil.patternE);
	}

	public String getModiDateStr() {
		return DateUtil.dateToString(this.modiDate, DateUtil.patternE);
	}

	public String getStatusStr() {
		return FormateUtil.getInstance().getNameByCode("p_ex_status",
				this.status);
	}

	public String getBillTypeStr() {
		return FormateUtil.getInstance().getNameByCode("p_bill_type",
				this.billType);
	}

	public String getInoutTypeStr() {
		return FormateUtil.getInstance().getNameByCode("p_inout_type",
				this.inoutType);
	}

}